package com.wanxi.pojo;

import java.text.SimpleDateFormat;
import java.util.Date;


public class Ledger {
    SimpleDateFormat ft = new SimpleDateFormat ("yyyy-MM-dd");
    String time;
    String IEName;
    String IorE;
    int Money;
    String CardBank;
    String beizhu;

    public Ledger(Date time, String iorE, String IEName, int money, String cardBank, String beizhu) {
        this.time = ft.format(time);
        IorE = iorE;
        this.IEName = IEName;
        Money = money;
        CardBank = cardBank;
        this.beizhu = beizhu;
    }

    public Ledger() {
    }

    public String getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time =ft.format(time);
    }
    public void setTime(String time) {
        this.time =time;
    }

    public String getIorE() {
        return IorE;
    }

    public void setIorE(String iorE) {
        IorE = iorE;
    }

    public String getIEName() {
        return IEName;
    }

    public void setIEName(String IEName) {
        this.IEName = IEName;
    }

    public int getMoney() {
        return Money;
    }

    public void setMoney(int money) {
        Money = money;
    }

    public String getCardBank() {
        return CardBank;
    }

    public void setCardBank(String cardBank) {
        CardBank = cardBank;
    }

    public String getBeizhu() {
        return beizhu;
    }

    public void setBeizhu(String beizhu) {
        this.beizhu = beizhu;
    }

    @Override
    public String toString() {
        return "Ledger{" +
                "ft=" + ft +
                ", time='" + time + '\'' +
                ", IEName='" + IEName + '\'' +
                ", IorE='" + IorE + '\'' +
                ", Money=" + Money +
                ", CardBank='" + CardBank + '\'' +
                ", beizhu='" + beizhu + '\'' +
                '}';
    }
}
